import {createFeatureSelector, createSelector} from '@ngrx/store';

import {MemberState} from '../../data-types/store/member-reducer.interface';

const selectMemberState = (state: MemberState) => state;

export const getMember = createFeatureSelector<MemberState>('member');

export const getModalVisible = createSelector(selectMemberState, (state: MemberState) => state.modalVisible);

export const getModalType = createSelector(selectMemberState, (state: MemberState) => state.modalType);

